// 财务相关所有接口数据
import request from '/@/utils/request';

/**
 * 岗位列表
 */
export function jobList(params: any) {
    const paramsQuery = Object.assign({}, params, {  
		current: params.pageNum,
		size: params.pageSize,
	});  
	delete paramsQuery.pageNum;
	delete paramsQuery.pageSize
	return request({
		url: '/job/list',
		method: 'post',
		data: paramsQuery,
	});
}

/**
 * 员工列表
 */
export function employeeList(params: any) {
    const paramsQuery = Object.assign({}, params, {  
		current: params.pageNum,
		size: params.pageSize,
	});  
	delete paramsQuery.pageNum;
	delete paramsQuery.pageSize
	return request({
		url: '/employee/list',
		method: 'post',
		data: paramsQuery,
	});
}


/**
 * 员工业绩
 */
export function statsRebateQuery(params: any) {
    const paramsQuery = Object.assign({}, params, {  
		current: params.pageNum,
		size: params.pageSize,
	});  
	delete paramsQuery.pageNum;
	delete paramsQuery.pageSize
	return request({
		url: '/stats/rebate/query',
		method: 'post',
		data: paramsQuery,
	});
}

/**
 * 门店评分统计
 */ 
export function evaluationNodeList(params: any) {
    const paramsQuery = Object.assign({}, params, {  
		current: params.pageNum,
		size: params.pageSize,
	});  
	delete paramsQuery.pageNum;
	delete paramsQuery.pageSize
	return request({
		url: '/evaluation/node/list',
		method: 'post',
		data: paramsQuery,
	});
}

/**
 * 门店员工评分统计
 */
export function evaluationEmployeeList(params: any) {
    const paramsQuery = Object.assign({}, params, {  
        current: params.pageNum,
        size: params.pageSize,
    });  
    delete paramsQuery.pageNum;
    delete paramsQuery.pageSize
    return request({
        url: '/evaluation/employee/list',
        method: 'post',
        data: paramsQuery,
    });
}

/**
 * 评价列表
 */
export function evaluationServiceList(params: any) {
   const paramsQuery = Object.assign({}, params, {  
       current: params.pageNum,
       size: params.pageSize,
   });  
   delete paramsQuery.pageNum;
   delete paramsQuery.pageSize
   return request({
       url: '/evaluation/service/list',
       method: 'post',
       data: paramsQuery,
   });
}